﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public class CHUCVUBUS
    {
        public DataTable Loadchucvu()
        {
            DataTable datatble = new DataTable();
            CHUCVUDAO cvDAO = new CHUCVUDAO();
            datatble = cvDAO.Loadchucvu();
            return datatble;
        }



        public int themchucvu(CHUCVUDTO bpDTO)
        {
            CHUCVUDAO bdDAO = new CHUCVUDAO();
            int kq = bdDAO.themchucvu(bpDTO);
            return kq;
        }
        public int update(DataTable datatable, string sqlquery)
        {
            CHUCVUDAO bpDAO = new CHUCVUDAO();
            return bpDAO.update(datatable, sqlquery);
        }
    }
}
